package mao.thinkinjava.concurency.uncatchexception;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author Totoro
 * @date 2020/5/9 9:24
 */
public class Test {
    public static void main(String[] args) {
        Thread.setDefaultUncaughtExceptionHandler(new MyUncatchExceptionHandler());
        ExecutorService exe = Executors.newCachedThreadPool(new MyThreadFactory());
        exe.execute(new ExceptionThread());

    }
}
